package cn.edu.nju.software.zp13.client.assignment4.sax;

import cn.edu.nju.software.zp13.client.assignment3.xmlGenerator.XmlGenerator;
import cn.edu.nju.software.zp13.client.assignment4.sax.scoreListXml.ScoreList2Xml;
import cn.edu.nju.software.zp13.client.assignment4.xslt.Transformer;

public class Main {
	public static void main(String[] args){
		String prefix=System.getProperty("user.dir")+"/xml";
		XmlGenerator xg=new XmlGenerator();
		xg.setXmlContent(new ScoreList2Xml(prefix+"/scoreList1.xml"));
		//At first,My final scroreList is scoreList2,but it seems to be not good!
		xg.createXml(prefix+"/scoreList2.xml");
		//To avoid modifying CourseScoreSelector and XmlEntity,I decided to add one more procedure--tansform;
		Transformer.tansform(prefix + "/scoreList2.xml", prefix + "/studentListToScoreList.xsl",
				prefix + "/scoreList3.xml");
	}
}
